package org.grow.yc.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.grow.yc.entity.LeaveAction;
import org.grow.yc.entity.dto.LeaveApplierQC;
import org.grow.yc.entity.dto.LeaveAuditorQC;

import java.util.List;

/**
 * @author xieweig
 * @description 针对表【LeaveAction】的数据库操作Mapper
 * @createDate 2024-09-30 09:31:37
 * @Entity org.grow.yc.entity.LeaveAction
 */
@Mapper
public interface LeaveActionMapper extends BaseMapper<LeaveAction> {

    List<LeaveAction> dynamicForApplier(@Param("qc") LeaveApplierQC leaveApplierQC, @Param("uid") String uid);

    IPage<LeaveAction> dynamicForApplier(IPage<LeaveAction> page,
                                         @Param("qc") LeaveApplierQC leaveApplierQC,
                                         @Param("uid") String uid);

    IPage<LeaveAction> dynamicForAuditor(IPage<LeaveAction> page, @Param("qc")LeaveAuditorQC qc, @Param("uid") String currentUser);
}




